import request from '@/utils/request'

// 查询学生退学列表
export function listLeave(query) {
  return request({
    url: '/teach/leave/list',
    method: 'get',
    params: query
  })
}
// sid查询详情
export function selinfo(sId){
  return request({
    url: '/teach/leave/getLeave?sid='+sId,
    method: 'get'
  })
}
// 查询学生退学详细
export function getLeave(lId) {
  return request({
    url: '/teach/leave/' + lId,
    method: 'get'
  })
}

// 新增学生退学
export function addLeave(data) {
  return request({
    url: '/teach/leave',
    method: 'post',
    data: data
  })
}

// 修改学生退学
export function updateLeave(data) {
  return request({
    url: '/teach/leave',
    method: 'put',
    data: data
  })
}

// 删除学生退学
export function delLeave(lId) {
  return request({
    url: '/teach/leave/' + lId,
    method: 'delete'
  })
}
